Change in openvpn[master]: iservice: fix off by one error
A message that is not in the archive (sent off-list or not yet received): gerrit.1763880426000.I3ebf30f6d9edc66eb54fb3f1b5634c96d156b1ca@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1395?usp=email
to review the following change.
Change subject: iservice: fix off by one error
......................................................................
iservice: fix off by one error
In case there is more than one non-ignored interface domain, the start of the next domain was off by one glyph. That meant that all but the first domain was ignored when converting to MULTI_SZ.
---
M src/openvpnserv/interactive.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/95/1395/1
src/openvpnserv/interactive.c +2 -1
@@ -2234,7 +2234,8 @@return NO_ERROR ; } - pos = comma +1 ; +/* Comma pos is now +1 after adding leading dot */ + pos = comma +2 ; } } }
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1395?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3ebf30f6d9edc66eb54fb3f1b5634c96d156b1ca
Gerrit-Change-Number: 1395
Gerrit-PatchSet: 1
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: d12fk, plaisthos.
cron2 has posted comments on this change by d12fk. ( http://gerrit.openvpn.net/c/openvpn/+/1395?usp=email )
Change subject: iservice: fix off by one error
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1395?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3ebf30f6d9edc66eb54fb3f1b5634c96d156b1ca
Gerrit-Change-Number: 1395
Gerrit-PatchSet: 3
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Wed, 26 Nov 2025 10:49:25 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH v3 1/1 iservice: fix off by one error
In reply to a message not in the archiveFrom: Heiko Hund <[email protected]...>
In case there is more than one non-ignored interface domain, the start of the next domain was off by one glyph. That meant that all but the first domain was ignored when converting to MULTI_SZ.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1395
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1395
This mail reflects revision 3 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpnserv/interactive.c +2 -1
@@ -2234,7 +2234,8 @@return NO_ERROR ; } - pos = comma +1 ; +/* Comma pos is now +1 after adding leading dot */ + pos = comma +2 ; } } }
[Openvpn-devel] [PATCH applied] Re: iservice: fix off by one error
Looks reasonable, BB compiles. Tests needed (and not really for this particular case, but for a more generic function "copy buffer list in <format a> to a new buffer list in <format b>, with a skip list" which would get used here... doing this in a single buffer just makes everything much more complicated, for the gain of saving a single malloc/free...).
Your patch has been applied to the master branch.
commit dc5baf8039b37095109f22632a2ca02da805b548
Author: Heiko Hund Date: Wed Nov 26 11:49:32 2025 +0100
iservice: fix off by one error
Signed-off-by: Heiko Hund <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1395
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34678.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#4) to the change originally created by d12fk. ( http://gerrit.openvpn.net/c/openvpn/+/1395?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: iservice: fix off by one error
......................................................................
iservice: fix off by one error
In case there is more than one non-ignored interface domain, the start of the next domain was off by one glyph. That meant that all but the first domain was ignored when converting to MULTI_SZ.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1395
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34678.html
---
M src/openvpnserv/interactive.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/95/1395/4
src/openvpnserv/interactive.c +2 -1
@@ -2234,7 +2234,8 @@return NO_ERROR ; } - pos = comma +1 ; +/* Comma pos is now +1 after adding leading dot */ + pos = comma +2 ; } } }
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1395?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3ebf30f6d9edc66eb54fb3f1b5634c96d156b1ca
Gerrit-Change-Number: 1395
Gerrit-PatchSet: 4
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1395?usp=email )
Change subject: iservice: fix off by one error
......................................................................
iservice: fix off by one error
In case there is more than one non-ignored interface domain, the start of the next domain was off by one glyph. That meant that all but the first domain was ignored when converting to MULTI_SZ.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1395
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34678.html
---
M src/openvpnserv/interactive.c
1 file changed, 2 insertions(+), 1 deletion(-)
src/openvpnserv/interactive.c +2 -1
@@ -2234,7 +2234,8 @@return NO_ERROR ; } - pos = comma +1 ; +/* Comma pos is now +1 after adding leading dot */ + pos = comma +2 ; } } }
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1395?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3ebf30f6d9edc66eb54fb3f1b5634c96d156b1ca
Gerrit-Change-Number: 1395
Gerrit-PatchSet: 4
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>